if (CMAKE_HOST_WIN32)

	SET(TERMINAL_DIR ${THIRD_PARTY}/windows/x86/terminal-sdk)
	if(CMAKE_SIZEOF_VOID_P EQUAL 8)
		SET(TERMINAL_DIR ${THIRD_PARTY}/windows/x64/terminal-sdk)
	endif()

	SET(TERMINAL_INCLUDE_DIR ${TERMINAL_DIR}/include)
	SET(TERMINAL_LIB_DIR  ${TERMINAL_DIR}/lib)
	SET(TERMINAL_LIBS libcrypto libssl)
ELSE()

	IF(CMAKE_TOOLCHAIN_FILE)
		IF (CMAKE_SYSTEM_NAME STREQUAL Android)

			IF (ANDROID_ABI STREQUAL armeabi-v7a)
				SET(TERMINAL_DIR ${THIRD_PARTY}/android/terminal-sdk/armeabi-v7a)
			ELSEIF (ANDROID_ABI STREQUAL arm64-v8a)
				SET(TERMINAL_DIR ${THIRD_PARTY}/android/terminal-sdk/arm64-v8a)
			ENDIF()

			SET(TERMINAL_INCLUDE_DIR ${TERMINAL_DIR}/include)
			SET(TERMINAL_LIB_DIR ${TERMINAL_DIR}/lib)

		ELSEIF (CMAKE_C_COMPILER MATCHES "hisiv300")
			SET(TERMINAL_DIR ${THIRD_PARTY}/hisiv300/terminal-sdk)
			SET(TERMINAL_INCLUDE_DIR ${TERMINAL_DIR}/include)
			SET(TERMINAL_LIB_DIR ${TERMINAL_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "hisiv400")
			SET(TERMINAL_DIR ${THIRD_PARTY}/hisiv400/terminal-sdk)
			SET(TERMINAL_INCLUDE_DIR ${TERMINAL_DIR}/include)
			SET(TERMINAL_LIB_DIR ${TERMINAL_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "hisiv500")
			SET(TERMINAL_DIR ${THIRD_PARTY}/hisiv500/terminal-sdterminal-sdk)
			SET(TERMINAL_INCLUDE_DIR ${TERMINAL_DIR}/include)
			SET(TERMINAL_LIB_DIR ${TERMINAL_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "hisiv600")
			SET(TERMINAL_DIR ${THIRD_PARTY}/hisiv600/terminal-sdk)
			SET(TERMINAL_INCLUDE_DIR ${TERMINAL_DIR}/include)
			SET(TERMINAL_LIB_DIR ${TERMINAL_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "himix100")
			SET(TERMINAL_DIR ${THIRD_PARTY}/himix100/terminal-sdk)
			SET(TERMINAL_INCLUDE_DIR ${TERMINAL_DIR}/include)
			SET(TERMINAL_LIB_DIR ${TERMINAL_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "himix200")
			SET(TERMINAL_DIR ${THIRD_PARTY}/himix200/terminal-sdk)
			SET(TERMINAL_INCLUDE_DIR ${TERMINAL_DIR}/include)
			SET(TERMINAL_LIB_DIR ${TERMINAL_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "gcc")
			SET(TERMINAL_DIR ${THIRD_PARTY}/gcc/terminal-sdk)
			SET(TERMINAL_INCLUDE_DIR ${TERMINAL_DIR}/include)
			SET(TERMINAL_LIB_DIR ${TERMINAL_DIR}/lib)
		ENDIF()

		SET(TERMINAL_LIBS Terminal_static)
	ELSE()
		SET(TERMINAL_DIR ${THIRD_PARTY}/gcc/terminal-sdk)
		SET(TERMINAL_INCLUDE_DIR ${TERMINAL_DIR}/include)
		SET(TERMINAL_LIB_DIR ${TERMINAL_DIR}/lib)

		SET(TERMINAL_LIBS Terminal_static)
	ENDIF()	
ENDIF()
